package com.zly.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

public class LogSystemAction extends ActionSupport {

	/**
	 * 反序列化
	 */
	private static final long serialVersionUID = 1L;

	public String logSystem() {
		// 用request获取值
		HttpServletRequest request = ServletActionContext.getRequest();
		HttpSession session = request.getSession();
		//清除session
		session.invalidate();
		return SUCCESS;
	}
}
